package lec07.am;

import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
import java.util.Vector;

//5 1 3 1 6 3
//4 1 1 1 1
//6 1 2 2 1 5 6
public class P06b {
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		Vector<Integer> v = new Vector<>();
		while (cin.hasNext()) {
			int n = cin.nextInt();
			v.clear();
			for (int i = 0; i < n; i++) {
				int cur = cin.nextInt();
				if (!v.contains(cur))
					v.add(cur);
				//System.out.println(v);
			}
			Collections.sort(v);
			for (Integer i : v)
				System.out.print(i + " ");
			System.out.println();

		}

		cin.close();

	}

}
